from django.contrib import admin
from .models import Schedule

@admin.register(Schedule)
class ScheduleAdmin(admin.ModelAdmin):
    list_display = ('departure', 'destination', 'departure_time', 'seats_available')
    list_filter = ('departure', 'destination')
    search_fields = ('departure', 'destination')
    date_hierarchy = 'departure_time'